package com.bskj.sj.service.impl;

import com.bskj.common.bean.model.ShortUrl;
import com.bskj.common.dao.ShortUrlDao;
import com.bskj.common.dao.core.BaseDao;
import com.bskj.common.service.impl.BaseServiceImpl;
import com.bskj.sj.service.IShortUrlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by mocaijin on 21/12/2017.
 */
@Service
public class ShortUrlServiceImpl extends BaseServiceImpl<ShortUrl> implements IShortUrlService {

    @Autowired
    private ShortUrlDao shortUrlDao;

    @Override
    public ShortUrl getById(String key) {
        return shortUrlDao.getById(key);
    }

    @Override
    public BaseDao<ShortUrl> getBaseDao() {
        return shortUrlDao;
    }
}
